
#!/bin/sh

#config ip
./usr/bin/ipapp.elf
echo "ip addr setting ok"

#mount file system
cd /home/root/
#mkdir nor_flash
mount -t jffs2 /dev/mtdblock1 nor_flash
echo "mount nor_flash file system ok"

#mkdir config_flash
mount -t jffs2 /dev/mtdblock2 config_flash
echo "mount config_flash file system ok"

#can setting
ip link set can0 type can bitrate 100000
ip link set can0 up
ip -d -s link show can0
echo "can setting ok"

cd /home/root/nor_flash/
./app.elf
